//@author A0101119Y
#ifndef FILEREADER_H
#define FILEREADER_H

#include <cstdlib>
#include "FileMgr.h"

namespace Twentyfifth {
	class FileReader : public FileMgr {
	protected:
		bool hasNextTask();
		Task getNextTask();
		std::string getLabel(std::string line);
		std::string getValue(std::string line);
		size_t getSeparatorPosition(std::string line);
		DateTime parseDateTimeFromString(std::string line);
	public:
		FileReader();
		FileReader(std::string customFile);
		~FileReader();
		bool isOpen();
		void openFile(std::string fileName);
		std::vector<Task> readTasksFromFile();
	};
}

#endif